#1499 Replace indices in function calls with pointers #88
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#1499 Replace indices in function calls with pointers
Some instances of r_idx are now replaced with pointers.
All of these were in functions working with monster recall.
Also a bug was fixed in the function wipe_monster_lore,
that made it impossible to wipe lore for all monsters.
This wizard command 'W' does not seem to be documented
in the help file.
This is only a partial solution of the ticket. The
remaining r_idx and other indices may still need cleanup.
Changes in:
mon-lore.h
mon-lore.c
In the functions:
cheat_monster_lore (Wizard command r)
wipe_monster_lore (Wizard command W)
describe_monster (Outputs the monster recall)
roff_top (Display one line with the name and ch of the monster)
screen_roff (Recall on the screen)
display_roff (Recall in term window)
Also secondary changes in:
wizard.c (Wizard commands r, W)
xtra3.c (Recall in subwindow)
cmd3.c (One line desc. at the recall command '/')
target.c (Recall when targeting)
ui-knowledge.c (Recall in list after player knowledge command ~)
wiz-spoil.c (Create spoil files)
No changes in:
mon-util.c
In the functions:
summon_specific_ok
What's the header file? The function does not seem to be in use.
I did not understand the function, so I didn't dare to change it.
No changes in:
cave.h
cave.c
In:
monster_race_track
No changes in mon-make.c, generate.c, spells1.c, wizard.c,
because r_idx is used inside the functions